#ifndef ADMINLEAVEEMPLOYEEVIEW_H
#define ADMINLEAVEEMPLOYEEVIEW_H

#include <QWidget>
#include <QLineEdit>
#include <QPushButton>
#include <QLabel>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QMessageBox>
#include "adminmanager.h"

class AdminLeaveEmployeeView : public QWidget
{
    Q_OBJECT
public:
    explicit AdminLeaveEmployeeView(QWidget *parent = nullptr);
    ~AdminLeaveEmployeeView();

signals:

private slots:
    void onLeaveButtonClicked();
    void onResetButtonClicked();

private:
    void setupUI();
    void setupConnections();

    // UI组件
    QLineEdit *empIdEdit;
    QPushButton *leaveButton;
    QPushButton *resetButton;

    // 管理类
    AdminManager *adminManager;
};

#endif // ADMINLEAVEEMPLOYEEVIEW_H
